package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.classgraph.json.Id;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.util.Date;


/**
 * @author 11394
 * @version 1.0
 * @description: TODO
 * @date 2024/7/10 8:55
 */
@Data
@TableName("article")
public class Acrtile implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;


    private Integer typeId;


    private String articleName;


    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date articleTime;


    private String articleUrl;


    private String typeName;
}
